<template>
  <div>
    <el-container style="height: 700px; border: 1px solid #eee">
      <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
        <el-menu :default-openeds="['1','2','3','4','5']">
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-message"></i>好友
            </template>
            <el-menu-item-group>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/friendList'?'routerActive':'router'" to="/friendList">好友列表</router-link></el-menu-item>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/bindFriend'?'routerActive':'router'" to="/bindFriend">邀请码自动绑定好友</router-link></el-menu-item>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/messageBoard'?'routerActive':'router'" to="/messageBoard">留言板</router-link></el-menu-item>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/searchFriend'?'routerActive':'router'" to="/searchFriend">搜素相关好友</router-link></el-menu-item>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/addFriend'?'routerActive':'router'" to="/addFriend">添加好友</router-link></el-menu-item>
            </el-menu-item-group>
            <!-- <el-submenu index="1-6">
              <template slot="title">选项6</template>
              <el-menu-item index="1-6-1">选项6-1</el-menu-item>
            </el-submenu> -->
          </el-submenu>
          <el-submenu index="2">
            <template slot="title"><i class="el-icon-menu"></i>词典管理</template>
            <el-menu-item-group>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/dictManage'?'routerActive':'router'" to="/dictManage">词典管理</router-link></el-menu-item>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/ascription'?'routerActive':'router'" to="/ascription">归属</router-link></el-menu-item>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/member'?'routerActive':'router'" to="/member">机构成员</router-link></el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="3">
            <template slot="title"
              ><i class="el-icon-setting"></i>金额</template
            >
            <el-menu-item-group>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/dollarPoint'?'routerActive':'router'" to="/dollarPoint">金额买卖积分</router-link></el-menu-item>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/topUpBalance'?'routerActive':'router'" to="/topUpBalance">账户充值余额</router-link></el-menu-item>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/accountBalance'?'routerActive':'router'" to="/accountBalance">账户余额</router-link></el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="4">
            <template slot="title"
              ><i class="el-icon-setting"></i>公共</template
            >
            <el-menu-item-group>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/sellingThesaurus'?'routerActive':'router'" to="/sellingThesaurus">售卖词库</router-link></el-menu-item>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/buyThesaurus'?'routerActive':'router'" to="/buyThesaurus">永久买下词库</router-link></el-menu-item>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/needThesaurus'?'routerActive':'router'" to="/needThesaurus">需求购买词库</router-link></el-menu-item>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/deleteThesaurus'?'routerActive':'router'" to="/deleteThesaurus">删除违规词库</router-link></el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="5">
            <template slot="title"
              ><i class="el-icon-setting"></i>违规用词</template
            >
            <el-menu-item-group>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/usersReport'?'routerActive':'router'" to="/usersReport">用户举报</router-link></el-menu-item>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/thesaurusReport'?'routerActive':'router'" to="/thesaurusReport">词库举报</router-link></el-menu-item>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/userThumbUp'?'routerActive':'router'" to="/userThumbUp">用户点赞</router-link></el-menu-item>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/thesaurusThumbUp'?'routerActive':'router'" to="/thesaurusThumbUp">词库点赞</router-link></el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="6">
            <template slot="title"
              ><i class="el-icon-setting"></i><router-link v-bind:class="this.$route.path=='/order'?'routerActive':'router'" to="/order">订单</router-link></template
            >
          </el-submenu>
          <el-submenu index="7">
            <template slot="title"
              ><i class="el-icon-setting"></i>管理员</template
            >
            <el-menu-item-group>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/permission'?'routerActive':'router'" to="/permission">权限</router-link></el-menu-item>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/permissionsRecycle'?'routerActive':'router'" to="/permissionsRecycle">权限回收</router-link></el-menu-item>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/disableThesaurus'?'routerActive':'router'" to="/disableThesaurus">禁用违规词库</router-link></el-menu-item>
              <el-menu-item><router-link v-bind:class="this.$route.path=='/unsealThesaurus'?'routerActive':'router'" to="/unsealThesaurus">解封违规词库</router-link></el-menu-item>
            </el-menu-item-group>
          </el-submenu>
        </el-menu>
      </el-aside>

      <el-container>
        <el-main>
          <el-col :span="24" class="content-wrapper">
            <transition name="fade" mode="out-in">
              <router-view></router-view>
            </transition>
          </el-col>
        </el-main>
      </el-container>
    </el-container> 
    </div>
</template>
<style>
    .el-header {
    background-color: #b3c0d1;
    color: #333;
    line-height: 60px;
    }

    .el-aside {
    color: #333;
    }
    .router{
      text-decoration: none;
      color: black;
    }
    .routerActive{
      text-decoration: none;
      color: black;
    }
</style>
<script>
    export default {
        data() {
          
        },
        methods:{
          
        }
    };
</script>